package com.test.multithread.designPattern;

public class Client{
   public static void main(String[] args){
     //开闭原则的测试
     IBook novel = new NovelBook("笑傲江湖",100,"金庸");
     System.out.println("书籍名字："+novel.getName()+"书籍作者："+novel.getAuthor()+"书籍价格："+novel.getPrice());
     IBook novel2 = new OffNovelBook("笑傲江湖2",120,"金庸");
     System.out.println("书籍名字："+novel2.getName()+"书籍作者："+novel2.getAuthor()+"书籍价格："+novel2.getPrice());
   }

}
